import { useState } from 'react';

export const useForceUpdate = (): (() => void) => {
  const [_, forceUpdate] = useState(0);

  return () => forceUpdate((val) => ++val);
};
